package ciyuan.Damage;

import ciyuan.Effect.Effects;
import net.minecraft.entity.player.PlayerEntity;

/**
 * @author 150149
 */
public class CalcDamageSpeed {

    public static float calcAttackSpeed(PlayerEntity playerEntity) {
        float speedMul = 1;

        if (playerEntity.hasEffect(Effects.weakness_analysis)) {
            speedMul = speedMul - 0.2F;
        }

        return speedMul;
    }

}
